<template>
  <div class="splitScreen" :style="containerStyle">
    <div class="operation" :style="{height: `${headerHeight}px`, lineHeight: `${headerHeight}px`}">
      <slot name="header"/>
    </div>
    <div class="table" :style="{height: `calc(100% - ${headerHeight}px)`}">
      <slot name="footer"/>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    containerStyle: {
      type: Object,
      default() {
        return {}
      }
    },
    headerHeight: {
      type: String,
      default: '33',
    }
  },
}
</script>

<style scoped lang="scss">
.splitScreen {
  position: absolute;
  width: 100%;
  height: 100%;
  .operation {
    position: relative;
    display: flex;
    align-items: center;
  }
  .table{
    width:100%;
    position: relative; 
  }
}
</style>